package com.ruoyi.demo.service.impl;

import com.ruoyi.demo.domain.UserRepair;
import com.ruoyi.demo.mapper.UserRepairMapper;
import com.ruoyi.demo.service.IUserRepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRepairServiceImpl implements IUserRepairService {
    @Autowired
    private UserRepairMapper userRepairMapper;

    @Override
    public UserRepair selectRepairByRepairId(Long repairId) {
        return userRepairMapper.selectRepairByRepairId(repairId);
    }

    @Override
    public List<UserRepair> selectRepairListByUserId(UserRepair repair) {
        return userRepairMapper.selectRepairListByUserId(repair);
    }

    @Override
    public int insertRepair(UserRepair repair) {
        return userRepairMapper.insertRepair(repair);
    }

    @Override
    public int updateRepair(UserRepair repair) {
        return userRepairMapper.updateRepair(repair);
    }

    @Override
    public int deleteRepairByRepairIds(Long[] repairIds) {
        return userRepairMapper.deleteRepairByRepairIds(repairIds);
    }

    @Override
    public int deleteRepairByRepairId(Long repairId) {
        return userRepairMapper.deleteRepairByRepairId(repairId);
    }
} 